package com.atguigu.gulimall.order.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author tianfengbo
 * @email tianfengbo@gmail.com
 * @date 2021-06-10 21:06:44
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo);

    OrderEntity getStatusByOrderSn(String orderSn);

    void releaseOrder(OrderEntity orderEntity);

    PayVo getPayVo(String orderSn);

    PageUtils  getOrderList(Map<String, Object> param);

    String handlePayNotify(PayAsyncVo vo);
}

